<div class="mhead">
	<span>添加房源</span>
</div>

<div class="mcontent">
	<form id="data-form" action="house_add.php" method="post" class="form1" enctype="multipart/form-data">
	<table id="form-table" class="table1">
		<tr>
			<th>名称：</th>
			<td>
				<input id="name" name="name" type="text" size="50" maxlength="40" 
					class="{required:true, maxlength:40, messages:{required:'房源名称不能为空', maxlength:'房源名称不能超过40个字符'}}"/>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">房源名称不能为空，最多只能40个字符</p></td>
		</tr>
		<tr>
			<th>房源图片：</th>
			<td>
				<input id="picture" name="picture" type="file" 
					class="{required:true, messages:{required:'文章来源不能为空'}}"/>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">文章来源不能为空，最多只能40个字符</p></td>
		</tr>
		<tr>
			<th>内容：</th>
			<td>
				<div style="float:left;background:#ffffff;">
					<textarea id="content" name="content" rows="28" cols="130" class="{required:true, messages:{required:'文章内容不能为空'}}"></textarea>
				</div>
				<div class="clr"></div>
			</td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td><p class="note">内容不能为空</p></td>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<td>
				<input type="hidden" name="action" value="add" />
				<input id="add-article" type="submit" value="提交" />
			</td>
		</tr>
	</table>	
	</form>
	
	<div class="blank3"></div>
</div>

<link rel="stylesheet" type="text/css" href="zonge-ui/components/validate/css/cmxform.css" />
<script type="text/javascript" src="zonge-ui/components/validate/jquery.validate.pack.js"></script>
<script type="text/javascript" src="zonge-ui/jquery.metadata.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#form-table').striped();	
	$("#data-form").validate();
	$("#add-article").click(function(){
		$("#content").val( $(".nicEdit-main").html() );
		$("#data-form").submit();
	});
}); 	
</script>

<script type="text/javascript" src="http://source.zongetech.com/nicedit/nicEdit.js"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() { 
	new nicEditor({
		fullPanel : true
	}).panelInstance('content');
});		
</script>